<nav class="top-nav">
    <a href="{{ url_for('index') }}">
        <img src="{{ url_for('static', filename='logo.png') }}" alt="健力宝Logo" class="logo">
    </a>
    <div class="nav-menu">
        <a href="{{ url_for('index') }}" class="nav-link {% if request.endpoint == 'index' %}active{% endif %}"
            data-tab="image-detection">
            <i class="fas fa-image"></i> 图片检测
        </a>
        <a href="#" class="nav-link" data-tab="camera-detection">
            <i class="fas fa-camera"></i> 拍照检测
        </a>
        <a href="{{ url_for('history') }}" class="nav-link {% if request.endpoint == 'history' %}active{% endif %}">
            <i class="fas fa-history"></i> 检测历史
        </a>
    </div>
</nav>